package net.wangds.auth.department.repo.rdbms;

import net.wangds.auth.department.entity.GeneralDepartmentUserRef;
import net.wangds.data.RemovedEnum;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface DepartmentUserRefRepo extends JpaRepository<GeneralDepartmentUserRef, String> {
    Optional<GeneralDepartmentUserRef> findByDeptIdAndUserId(String deptId, String uid);

    List<GeneralDepartmentUserRef> findByUserIdAndRemoved(String id, RemovedEnum normal);
}
